package cn.jhz.learn.blog.controller.core.open;

import cn.jhz.learn.blog.service.core.open.photo.AlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/public/core/album/")
public class AlbumController {

    private final AlbumService albumService;

    @Autowired
    public AlbumController(AlbumService albumService) {
        this.albumService = albumService;
    }

//    @GetMapping("subfield/list")
//    public Map<String, Object> getAlbumSubfields(@Validated PageView pageView) {
//            return JsonData.success(albumService.getSubfields(pageView)).toMap("subfieldList");
//    }
//
//    @GetMapping("list")
//    public Map<String, Object> getAlbums(@Validated PageView pageView) {
//            return JsonData.success(albumService.getAlbums(pageView)).toMap("subfieldList");
//    }
//
//    @GetMapping("{photo_subfield_id}")
//    public Map<String, Object> getAlbum(@PathVariable Integer photo_subfield_id) {
//            return JsonData.success(albumService.getAlbum(photo_subfield_id)).toMap("subfieldList");
//    }

}
